package com.ruoyi.cms.docs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件对象 cms_docs
 * 
 * @author ning
 * @date 2023-06-25
 */
public class CmsDocs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件id */
    private Long docsId;

    /** 文件夹id */
    @Excel(name = "文件夹id")
    private Long folderId;

    /** 文件内容id */
    @Excel(name = "文件内容id")
    private Long contentId;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * Markdown格式内容
     */
    @Excel(name = "Markdown格式内容")
    private String contentMarkdown;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String docsName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String docsType;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String contentSize;

    private String folderPath;

    public void setDocsId(Long docsId) 
    {
        this.docsId = docsId;
    }

    public Long getDocsId() 
    {
        return docsId;
    }
    public void setFolderId(Long folderId) 
    {
        this.folderId = folderId;
    }

    public Long getFolderId() 
    {
        return folderId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setDocsName(String docsName) 
    {
        this.docsName = docsName;
    }

    public String getDocsName() 
    {
        return docsName;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setDocsType(String docsType) 
    {
        this.docsType = docsType;
    }

    public String getDocsType() 
    {
        return docsType;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContentMarkdown() {
        return contentMarkdown;
    }

    public void setContentMarkdown(String contentMarkdown) {
        this.contentMarkdown = contentMarkdown;
    }

    public String getContentSize() {
        return contentSize;
    }

    public void setContentSize(String contentSize) {
        this.contentSize = contentSize;
    }

    public String getFolderPath() {
        return folderPath;
    }

    public void setFolderPath(String folderPath) {
        this.folderPath = folderPath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("docsId", getDocsId())
            .append("folderId", getFolderId())
            .append("contentId", getContentId())
                .append("content", getContent())
                .append("contentMarkdown", getContentMarkdown())
            .append("docsName", getDocsName())
            .append("orderNum", getOrderNum())
            .append("docsType", getDocsType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
                .append("contentSize", getContentSize())
                .append("folderPath", getFolderPath())
            .toString();
    }
}
